package com.project.mapper;

import com.project.domain.dto.projectCheckDto.*;
import com.project.domain.entity.BizCheckLog;
import com.project.domain.entity.BizReviewPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created by cw13031 on 2025/2/6.
 * Description:
 */
@Mapper
public interface ProjectCheckMapper {

    List<HashMap<String, Object>> search(SearchReqDto dto);

    List<HashMap<String, Integer>> searchStatistics(SearchReqDto dto);

    int insertBizCheckLog(BizCheckLog bizCheckLog);

    int updateBizCheckLog(BizCheckLog bizCheckLog);

    int changeProjectState(LixiangActionReqDto dto);

    ArrayList<BookCheckHistoryResDto> getCheckHistoryByBookId(@Param("bookId") String bookId);

    int updateProjectId(@Param("bookId")String bookId, @Param("projectId")String projectId);

    int insertReviewPlan(BizReviewPlan plan);

    int updateReviewPlan(BizReviewPlan plan);

    HashMap<String, Object> getReviewPlanById(@Param("planId")String planId);

    ArrayList<MsgListResDto> msgList(MsgListReqDto dto);

    MsgDetailResDto msgDetail(MsgDetailReqDto dto);

    ArrayList<HashMap<String, String>> getFileInfoByFileIds(@Param("fileIdList") ArrayList<String> fileIdList);
}
